package cn.com.surker.workcon.service.xugong;

import cn.com.surker.base.system.entity.SysLine;
import cn.com.surker.workcon.common.GKJDBCService;
import cn.com.surker.workcon.service.ProdDelService;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * <p>
 * 删除派单数据 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-09-26
 */
public class ProdDelServiceImpl extends GKJDBCService implements ProdDelService {

	public int insert(Long lineId, Long dispatchId, String dispatchCode) {
		if (lineId == null || dispatchId == null) {
			return -1;
		}
		SysLine line = getLine(lineId);
		JdbcTemplate lineTemplate = getLineJdbcTemp(line);
		//	没有数据源
		if (lineTemplate == null) {
			return -1;
		}
		return 1;
	}

	public Integer selectByDisId(Long lineId, Long dispatchId) {
		if (lineId == null || dispatchId == null) {
			return null;
		}
		SysLine line = getLine(lineId);
		JdbcTemplate lineTemplate = getLineJdbcTemp(line);
		//	没有数据源
		if (lineTemplate == null) {
			return null;
		}
		return -1;
	}

	public Integer deleteByDisId(Long lineId, Long dispatchId) {
		return null;
	}
}


